<tr>
    <td width="70%" align="left" valign="top">
    <div class="box">
    <table width="100%">
    <tr>
    <td valign="top" width="75">
    <%= render :partial => 'shared/userThumbImage', :object => @user%>
    </td>
    <td valign="top">
        来自: <%= @user.display_name %><br/>
        寄给: <%= @touser.display_name %><br/>
        时间: <%= local_date @message.created_at %><br/><br/>
        话题: <%= @message.title%><br/><br/>
        <%= textilize(@message.content)%>
    </td>
    </tr>
    <tr>
    <td>
        <% if @user != current_user %>
        <% form_remote_tag(:update => "update_div", :url => {:action => 'reply'} ) do -%>
            <input id="user_id" name="user[id]" type="hidden" value="<%=@user.login%>"/>
            <input id="message_id" name="message[id]" type="hidden" value="<%=@message.id%>"/>
            <%= submit_tag '回复' %>
        <% end -%> 
        <% else %>
            &nbsp;
        <% end %>
    </td>
    <td>
        <% form_tag( :action => 'delete' ) do -%>
            <input id="message_id" name="message[id]" type="hidden" value="<%=@message.id%>"/>
            <%= submit_tag '删除' %>
        <% end -%>
    </td>
    </tr>
    </table>
        <% if @user != current_user %>
        <div id="update_div">
        </div>
        <% end %>
    </div>
    </td>
    <td width="30%" align="left" valign="top"> 
        <div class="side_box">
        <ul class="menu">
            <li><%= image_tag("email_go.png", :align=>"absmiddle")%> <%= link_to '去发件箱', sendbox_admin_messages_path %></li>
            <li><%= image_tag("email_go.png", :align=>"absmiddle")%> <%= link_to '去收件箱', admin_essages_path %></li>
        </ul>
        </div>
    </td>
</tr>